package com.platform.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

import com.platform.dao.EnergyCoinDao;
import com.platform.entity.EnergyCoinEntity;
import com.platform.service.EnergyCoinService;

/**
 * 能量币记录表Service实现类
 *
 * @author liweihai
 * @email liweihai12345@sina.com
 * @date 2019-05-22 13:50:37
 */
@Service("energyCoinService")
public class EnergyCoinServiceImpl implements EnergyCoinService {
    @Autowired
    private EnergyCoinDao energyCoinDao;

    @Override
    public EnergyCoinEntity queryObject(Long id) {
        return energyCoinDao.queryObject(id);
    }

    @Override
    public List<EnergyCoinEntity> queryList(Map<String, Object> map) {
        return energyCoinDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return energyCoinDao.queryTotal(map);
    }

    @Override
    public int save(EnergyCoinEntity energyCoin) {
        return energyCoinDao.save(energyCoin);
    }

    @Override
    public int update(EnergyCoinEntity energyCoin) {
        return energyCoinDao.update(energyCoin);
    }

    @Override
    public int delete(Long id) {
        return energyCoinDao.delete(id);
    }

    @Override
    public int deleteBatch(Long[] ids) {
        return energyCoinDao.deleteBatch(ids);
    }

    @Override
    public Integer queryCountByParam(Map<String, Object> param) {
        return energyCoinDao.queryCountByParam(param);
    }

    @Override
    public BigDecimal queryAllCoin(Map<String, Object> param) {
        return energyCoinDao.queryAllCoin(param);
    }
}
